package com.hckjsec.cloud.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.cloud.mapper.AppletsBusinessMatterApplicantMapper;
import com.hckjsec.cloud.domain.AppletsBusinessMatterApplicant;
import com.hckjsec.cloud.service.IAppletsBusinessMatterApplicantService;

/**
 * 申办信息-公证人员Service业务层处理
 * 
 * @author cyt
 * @date 2021-08-23
 */
@Service
public class AppletsBusinessMatterApplicantServiceImpl implements IAppletsBusinessMatterApplicantService 
{
    @Autowired
    private AppletsBusinessMatterApplicantMapper appletsBusinessMatterApplicantMapper;

    /**
     * 查询申办信息-公证人员
     * 
     * @param id 申办信息-公证人员ID
     * @return 申办信息-公证人员
     */
    @Override
    public AppletsBusinessMatterApplicant selectAppletsBusinessMatterApplicantById(Long id)
    {
        return appletsBusinessMatterApplicantMapper.selectAppletsBusinessMatterApplicantById(id);
    }

    /**
     * 查询申办信息-公证人员列表
     * 
     * @param appletsBusinessMatterApplicant 申办信息-公证人员
     * @return 申办信息-公证人员
     */
    @Override
    public List<AppletsBusinessMatterApplicant> selectAppletsBusinessMatterApplicantList(AppletsBusinessMatterApplicant appletsBusinessMatterApplicant)
    {
        return appletsBusinessMatterApplicantMapper.selectAppletsBusinessMatterApplicantList(appletsBusinessMatterApplicant);
    }

    /**
     * 新增申办信息-公证人员
     * 
     * @param appletsBusinessMatterApplicant 申办信息-公证人员
     * @return 结果
     */
    @Override
    public int insertAppletsBusinessMatterApplicant(AppletsBusinessMatterApplicant appletsBusinessMatterApplicant)
    {
        return appletsBusinessMatterApplicantMapper.insertAppletsBusinessMatterApplicant(appletsBusinessMatterApplicant);
    }

    /**
     * 修改申办信息-公证人员
     * 
     * @param appletsBusinessMatterApplicant 申办信息-公证人员
     * @return 结果
     */
    @Override
    public int updateAppletsBusinessMatterApplicant(AppletsBusinessMatterApplicant appletsBusinessMatterApplicant)
    {
        return appletsBusinessMatterApplicantMapper.updateAppletsBusinessMatterApplicant(appletsBusinessMatterApplicant);
    }

    /**
     * 批量删除申办信息-公证人员
     * 
     * @param ids 需要删除的申办信息-公证人员ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessMatterApplicantByIds(Long[] ids)
    {
        return appletsBusinessMatterApplicantMapper.deleteAppletsBusinessMatterApplicantByIds(ids);
    }

    /**
     * 删除申办信息-公证人员信息
     * 
     * @param id 申办信息-公证人员ID
     * @return 结果
     */
    @Override
    public int deleteAppletsBusinessMatterApplicantById(Long id)
    {
        return appletsBusinessMatterApplicantMapper.deleteAppletsBusinessMatterApplicantById(id);
    }
}
